﻿using System.Web.Mvc;
using DoveSiButta.Helpers;
using System.Collections.Generic;

namespace DoveSiButta.Models {
    public class BoxFormViewModel {
        
        public Box Box { get; private set; }
        public SelectList Countries { get; private set; }
        public SelectList BoxType { get; private set; }
        //public List<SelectListItem> DinnerTypesElements = new List<SelectListItem>{new SelectListItem{Value="2",Text="Vetro"});

        public BoxFormViewModel(Box box) {
            Box = box;
            Countries = new SelectList(PhoneValidator.Countries, Box.Country);
            BoxType = new SelectList(GarbageTypes.GarbageTypesKeyValueList,"Chiave","Valore");
        }
    }
}
